package com.linzelin.log;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

public class afterLog implements AfterReturningAdvice {

    /**
     * @param returnValue 返回值
     * @param method      方法类
     * @param args        参数
     * @param target      目标对象
     */
    @Override
    public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
        System.out.println(method.getName() + "被执行了,返回了" + returnValue);
    }
}
